package cn.redsoft.wechatapi.msg.resp.passivity;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@XStreamAlias("xml")
public class TextResponseMsg extends PassivityResponseMsg {
	@XStreamAlias("Content")
	protected String content;

	public TextResponseMsg() {
		this.msgType = PassivityResponseMsgType.TEXT;
	}

	public TextResponseMsg(String toUserName, String fromUserName,
			long createTime, String content) {
		super(toUserName, fromUserName, createTime, null);
		this.msgType = PassivityResponseMsgType.TEXT;
		this.content = content;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Override
	public String toString() {
		return "TextResponseMsg [content=" + content + ", toUserName="
				+ toUserName + ", fromUserName=" + fromUserName
				+ ", createTime=" + createTime + ", msgType=" + msgType + "]";
	}

}
